﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


/**
* @Author: AdinZ
* @Q  Q : 1454269
* @Email:adinz@adinz.com
* @Created: 2014/3/31 16:46:33
*
* */
namespace Novel.Sys.Model
{
    public class novel_session
    {
        private int uid;
        private string session;
        private DateTime created;
        private DateTime endtime;

        public novel_session()
        {
        }


        /// <summary>
        /// 会员id
        /// </summary>
        public int Uid
        {
            get { return uid; }
            set { uid = value; }
        }
        /// <summary>
        /// sessionKey
        /// </summary>
        public string Session
        {
            get { return session; }
            set { session = value; }
        }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime Created
        {
            get { return created; }
            set { created = value; }
        }
        /// <summary>
        /// 结束时间
        /// </summary>
 
        public DateTime Endtime
        {
            get { return endtime; }
            set { endtime = value; }
        }
        public void Reset()
        {
            uid = 0;
            session = null;
            created = DateTime.Now;
            endtime = created;
        }

        public void AssignFrom(novel_session AObj)
        {
            if (AObj == null)
            {
                Reset();
                return;
            }
            uid = AObj.uid;
            session = AObj.session;
            created = AObj.created;
            endtime = AObj.endtime;
        }

    }

}

